<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCategoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('categoods', function (Blueprint $table) {
            $table->increments('id')->comment('自增ID');
            $table->string('name',50)->comment('良品购分类名称');
            $table->tinyInteger('disstatus')->default(1)->comment('显示状态1：显示2：隐藏');
            $table->integer('pid')->default(0)->comment('子分类ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
